package com.supply.supplymanage.biz;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.supply.supplymanage.dao.ExploitMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class ExploitBizImpl implements  ExploitBiz {
    @Resource
    private ExploitMapper exploitMapper;
    @Override
    public PageInfo seleExpAll(int PageNum,String danhao) {
        PageHelper.startPage(PageNum,2);
        List<Map> maps = exploitMapper.seleExpAll(danhao);
        System.out.println(maps);


        PageInfo<Map> pageInfo = new PageInfo<Map>(maps);

        return pageInfo;
    }
}
